/**
 * @author ZCR
 * @create 2025/9/8 22:31
 */
public class LCR187 {
    public int iceBreakingGame(int num, int target) {
        if (num == 1) {
            return 0;
        }
        int x = iceBreakingGame(num - 1, target);
        return (x + target) % num;
    }
}
